fixed spurious \n on bed_to_coordinates