Fixed to work on firefox too