fixed a new issue I introduced with ngal==1 which was using an extra array