Fix NDArray divide issue