Fix returning instance as an output argument from method

Submitted By: Radek Novacek <rnovacek@redhat.com>