Fix (filemap): Infinite recursion when creating filemap