Fix document not being rendered