fix "out of bounds" warning on viewer creating
fix cursor handling