fix bottle attribute assignment