Fixed the loop on the home screen