fixed bug only passes obs_by to new_data if is.character