fix document builder error (missing done for 'for')