Fix reflection warnings