fix bug with imported types from anon objects