Fixed a problem with rewrite timeouts.