fixes loader behavior in page visit via history