fixed error in updatevertexnoopt