fix model session, should not have remove #idAttribute