Fixed desyncing bug on the client side