Bug/ Page continually refreshes in Chrome