solve the inconsistent bug