Update masks input position