Fixed a problem with multi clients