fix colormap initialization: add missing global keywords