fix scaling issues targetting Safari