Fixed an error that passed the wrong data to client.