ending fix