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

Oooops, that's my fault