Fixed several reflection warnings