Fix bug in getting the sub-board id