fix bug on empty results with fetchSingle