ND2: prevent exceptions when the intermediate plane size is 0