I just had an answer accepted on Stack Overflow regarding an sql query. My answer was accepted, however my interpretation of the question seemed incorrect. After this was pointed out, I edited the question so my answer matched the question. The original poster thanked me, telling me directly that my answer fixed her problems, so I think that her question was mis-phrased.
Was this the proper move or should I have left the question as is?