Bug was that activation is actually hard coded in the error calculations. Added MatrixLayer with better performance