fixed NPE in case of no results