fixed dedicated server compatibility
fixed several crashes