What browser are you using when this happens? If it's Internet Explorer, that might be the cause. That browser is just horrible, and full of bugs that are impossible to work around.
All internet users should use a modern browser like Chrome or Firefox.