fix remove resource from root