Fixed error when try to create client