Fixed bug during building of expvmat