Fixed a bug when importing an empty board