fixed bug in ensure2D