Ritchie resigns and Bartlett loses another minister