Fixed the check on setcolour