fix minor bug that was ignored by desktop browsers but caused mobile Safari to error