Fixed null in intentory.