fixed scale and translate problems