Fixing some broken reflection calls