fixed an inconsistency bug