-fix the error that ticket form not close when save successful
-fix error caused by sorting