ES|KG: fixed up popup not be initialised properly