supressing error in case that list is empty and causes fatal error