fix started at flag bug