Fix possible crashs when using server class