fix bug where scale was applied twice