Fix a small bug in ProjectRootBuffers