need to init mask each time for select