fixed bug in PSF extraction, int[] array was changed