fix optval on short args