fix bug in frame change and back-to-board index