fix result insert