fix npe during application launch