Fixed an issue with reflection.