pill box bug fix