fix h,v wrong bug: vcomps and hcomps are wrong