Fixed global vars in colorize function