Fixed error with autoconfigure