Fix bug in parsing single attribute with entities.