Fixed a horrible reflection bug that would have caused terrible performance.