Fixed bug in the automatic application startup. See issue #256