fixed inserting of non visible elements after getting visible