fixing the mass input problem