fixed wrong shift in initializeroot buffer