[data] bugfix in get_valid_mask (keep original mask)
minor