Fixing undefined reference to object.