issue #695 pad with NaN