Trying to fix hasitem issue