board: fix a bug when null is passed