fixed a small bug when comment on intention doesn't return to previous page