Fix undefined method in Model XML element