Fix error in bgopts