Fixed bug in pxysingfolder

Fixed bug on data variable initializations