[FIX] potential bug in application initialization