Fixed a bug involving very fast page-switching