Fixed serious colour deection bug