Fixed bug that crashed home screen