Clear error after document initialization