fixes handling of ['@type