Fixed redirect issue on views