fatal bug fixed: if already exist cache, redefine window.active