Fix bug that change all squares to white.