As others have said, it is your ViewID which is messed up.
If you are editing in LUAs, make sure you have the correct ViewID in the accessoryid.lua .
Also, make sure you have the correct ViewID in the ItemDB. The ViewID in the item_db scripts is just before the brackets (effects)
Ex.
9,9,9,9,1111,{ bonus bAllStats,1; },{},{}
1111 would be the ViewID. You must have set or the Aladin Hat to the ViewID of the Wolf Ears, or the Wolf Ears ViewID to the ID of the Aladin Hat.
Hope it helped.