fixed attribute handler bug for simple attributes