Fixed some search result transformation bugs