Not checking correctly