lock fetch process and restore global variable. fixed repeat posts.