BUG: Use correct definition for root checking.