bugfix with the root path and setItem id check