Fixed magicitemadapter to support negative level.