return object fix when method invoked without parameters