Do not override document variable, use doc variable instead