FM: fix wrong data type for dirtree