fixed medication bug