fixed potential for invalid colours to be loaded