fix a bug of exit in resultpage