Bug fix on first startup

Quick bug that was making the app crash on the first start up of the application.