FIxed bug preventing app from running