Fixed initial caret positioning in inputmasks