Fixed template rendering on Safari.