fix incorrect annotation inheritance