Fix check for list