bug: sometimes there will be twice init on a same page