fixed 0 event error on app startup