fixing another change related to new annex type casting stuff