Use setcdr instead of setf.