setFromRequest and buildAttributes bug fixes