Fixed error with client