Fixed a bug in pn array methods