Fix for issue #37, which is caused by a browser bug in Mobile Safari