fix rending of empty result set