fixed flag not registered