add medication bug fix