fix some fuck bugs

So the server can run now!