Fix overlooping into inventory

Fixes submitted issue.