Fixed bug where app would not start