Found what was wrong with reflection. It is working now.