merge WG changes from 0.8.11 to 0.9.0

Hi Omegaice,

her the WG changes in 9.0
this fix the wrong battel button with historic battels

mEDI_S