Fixed bug with reflection constructor