Forgot to initialize typemask.