Update inventory size check.