Fix gamble item related bugs.