Fix premature disconnection problem: You should not use an complex
object as index