Why are my lists messed up?