fix ending