I find its best to wait to fix any bugs till after you finished the main bulk of the game. Unless of course the bug is entirely stopping you from testing your game!