Bugfix, TWI memory allocation