fix problem type_resource