Fixed bugs with Colorize function.