On rings in which every maximal one-sided ideal contains a maximal ideal