Fixed error on client side