small Matlab compatibility fix.
merge head.