Fix an error when installed globally