fix issue with mutable attributes