Fix warning, when site redirect takes place. Fix #260.