fix bases var