Fixed bug in colour selection.