Fix matrix negate bug