fixing error in openURL example code