bugfix due to filesystem api change