Found the errors that were messing up the app