fixed calls to ranksum when nans