Fixing routing issue on firefox