fixed bug of calling jquery selector before it loaded