Change order in validation of available connection.