Fixed issues when creating a list.
Initial check in.