fix issue with mutable lists