Fixing root reference.