Fix for Matlab version