Fixed masked inputs bug