Fixes potential server crash.