fixed variable extension bug