Fix rmmc's logic