With a bit more experience than you I can say (per usual) that it depends. But the best business answer is usually both. Get the fix out as fast as you can, but schedule the time to refactor the code and get it right. Too far towards one way or the other leads to your hands being tied too often. Sometimes a quick hack makes sense. Sometimes it doesn't. Experience (and not always programming experience) is the best way to determine which would be better -- speed or maintainability.