[fix] handling empty resultset