Fixed instantiation of object issue.