fix for empty vector