Fixed check bug