Fix rendering issue on Safari.