Fixed issue where options -o ref=xxx and-o alt=xxx were ignored.