fixes #333 - added another guard for the last step of the build not to update the cursor