fix coordinate issue for scale