I had this bug too, the only fix i could find was loading a quicksave from before the lander detatched, then disabling the engines on both crafts (lander and command module) before going ahead with the landing and the dommand module in orbit should keep its orbit.