Fix checking of option