fix argument offset issue for $options in case first argument is used as options