Fixes exception when throwing potions or something.