Fixing checking mistake