fixed app-breaking bug