Well, it could be considered a flaw: The machines are actually being benevolent toward their former masters. The world lay in ruins and there is no way the planet could sustain all the people currently in the Matrix. However, the Matrix does allow people a full and complete life. Sure, the humans are powering the machines but the machines give humans something back in return. It can be seen as a symbiotic relationship.