fix mvcost bug