fixed a horrendous bug concerning custom colours.