fixed matrix bug.

Signed-off-by: CoffeeParser <denis.dik@hs-furtwangen.de>