Fixed server crash error.