bug fix for root native layer