fix the nil judge