fix errors on server