bugfix
Debbuging APMatrix