medal bug fix