fix scan shape error