fix: use length for list and not list