fixed checking bug