fix transform bugs; scaling centre