fixed bug that disallowed finishing the app just after start