Change attr reference to id