Fixed some server side errors.