fix the bug of showing two same items