Fixed redirect after init