fixed Null comparisons
fixed None comparisions
min