fix some options problems