Fix for matrix param in double mode