Adding back this code causes mat-thd (input only) to work