bug fix for list when no records exist