Fixed bug that would always return invalid configuration