fixed scale_to_log