fix: set master from attribute