Bug fix at calculate root subpath, added model, no frame bug fixed