Fix scale issue when orientation changes