Client::resize funcion fixed