Fixing bug in board factory