fix bug in results page