Fixed server crashes.