Fix a bug that scaled rectangle right-bottom position is wrong.