Fix for Html5 location