Fixed document not being parsed