fix scaling issue for Safari