Don't crash when board size is changed.