fixing silly problem with lists of primitives