fix : object undefined error