Fixed application crash on start. Fixes Bug#15

Fixes #15 for now.

The application crashes when starting up.. have fixed with a temporary hack.