fixed pop script