fix matlab conversion error (thanks CL)