The app crashes when the "prepare recording" feature is clicked