fixed reflection warnings