elm genlist: Changed internal variables correctly. Patch by Hyoyoung