fixed minor bug on app startup