Fiexed an error that was crashing the app.