handle NA in cumany and cumall. #408