fixed bug in server