fix exception about NSNull class