fixed bug with empty list, when empty list will be converted to null