Bugfix adding offset to directory listing to handle pagination