fixed bug due to previous change with zoom scaling