Fix Safari bug on small screens