1. When your purchased the flat the first owner did not have perfect title and hence your purchase became defective.
2.However since it was your sale agreement only and no deed of conveyance is registered as yet you cna perfect the title by adding the builder as confirming party to your deed.
3. or otherwise the first owner will be required to first get his deed of conveyance registered and then made the sale deed with you.