Fixed an issue with loading the app as mentioned in #401