Fixed error in server-client communication