fixed bug in determining full inventory