Fixed error when document preflight is set to off