Correct inventory size from the repository also.