fixing errors on inventory click