Bug fix : fixed going to result page if error in home page