correct errors for <T> type