Fixed matrix mismatch bug

Still presents problems receiving consecutive different frames