Fixed few problems related with looting plugin.

hell, That was really dangerous.