null valued select fix