fixed bug with not recognising colours