Bug fix on reflecting method