Error: transient attribute usage is invalid. What to do: remove transient qualification or remove the expanded status of enclosing class.