Fixed invalid cast in multi-player.