fix ending issue