fix bug with changing board