Fixed purchase_item_input filter implmentation.