Since mysore pak has a small margin for error, there is not much you can do to repair and rectify it after the fact, once you have poured it from the pan & let it set. So if mysore pak has turned into a halwa, the best thing to do is eat the halwa, and try again. It's a tricky recipe to get right at the first go.