Take another look at the original sentence:
You wanted to fix it this way:
A comma and a coordinating conjunction like but is a perfectly good way to join two main clauses. There is a catch, however. The coordinating conjunction that you choose must logically join the two main clauses. In the example above, the conjunction but, which shows contrast, is inappropriate.
You might want to consult the rules for fixing comma splices and fused sentences.