Corrected bug causing the board to reset