Regenerating sprites issue