Fixed bugs to run the app