Fixed unmentioned entities throwing exceptions "cannot cast to blah blah blah"

Oooops, that's my fault