fix dictionary lookup crash in scroll mode