Fixed undefined var if root path was enabled