patch incorrect type selection on update