options handling bug