Fixed Errors in server file