Thanks anyway. My bad, it was due to poly-org package which I had installed recently. It broke undo in org buffers too.