pop script fixed (hopefully)