bug fix

fixed a bug where clicking 'next' may cause the app to crash on device