fix the 2d pattern wrong  ratio issue