diff --git a/docs/developers.md b/docs/developers.md
index fa801c37e125a363f4194dde4ea9ddef9bbff99c..182d9ea997f74f39051f367e9adb1cf72fe7cda5 100644
--- a/docs/developers.md
+++ b/docs/developers.md
@@ -8,7 +8,7 @@ This page contains documentation for developers (people who would like to contri
 ## Setup
 From the root directory of your Moodle installation run the script below.
 ```sh
-cd admin/tool/log/store; rm -rf xapi; git clone git@github.com:xAPI-vle/moodle-logstore_xapi.git xapi; php -r "readfile('https://getcomposer.org/installer');" | php; rm -rf vendor; php composer.phar install --prefer-source;
+cd admin/tool/log/store; rm -rf xapi; git clone git@github.com:xAPI-vle/moodle-logstore_xapi.git xapi; cd xapi; php -r "readfile('https://getcomposer.org/installer');" | php; rm -rf vendor; php composer.phar install --prefer-source;
 ```
 
 If you hadn't already installed the plugin, you'll need to login as an admin and navigate to "http://www.example.com/admin/index.php" (replacing “www.example.com” with your own domain). Once there you can follow on from step 6 of the [user installation guide](installation.md).