fix for Windows MATLAB interface