fixed crash with registerEntities
fixed item icons. the methods and fields changed.