fix issue on rich client that could appear when adding attributes