added patch for media module if upgraded from unstable versions