Fixed the object declaration of the result