fix bug

Now it can be called outside its directory.