Small fix

Forgot to remove path from function that does not need it.