r2013a compatibility fix