Fixed bug that crashed the app when a category was chosen