Bugs med reflection

Signed-off-by: Vallle <seifer_50@hotmail.com>