add error handling for 1.7.2
bug fixed: item lost when toggle inv
fix special inventories for this version