fix comparison to null