fix masked input