fixed 0 check error