Removes an end to make the UI work.