Got the arguments to map() wrong