Fix: previous check for know types didn't work correctly