fix error that can occur when creating a new board