fix: pointer exception in second run