fixed the colour variable issue with a hack.