[bugfix] set matrix to 0 before reassembly
set mode parameters correctly