fixed #24 duplicate request when the page rendered