Fixed bug where networking elements try to cast to wrong type.