fix for NDShape apply and iteration