Fixed check if min > max in config