fix NSNull instead of nil problem