fixed issue #100 where it's possible that another class than a UIViewController will be returned