fix for empty list