fix result collation bug