Bug fix #58

Fix some problems with method reflection