if it is runtime error, then it should not redirect to root, but to index method