fix reflection warnings