Fixed error when colour management is off.