fixed deform for new matlab