Major bugfix

Fixed server crashes