fix comparing with null