fixed pointer overrun in stroke preview