Problem with mutable list fixed