Fixed "IEntity unaccessible" & "conversion" warnings