fixed reference attribute problem