fix bug not judging