fixed an issue when stackItems was off