Fix bug with wrong autoload settings