Fixed problem with startup app when runned at startup