fixed issue with merge_vars