Fix the OpenURL function