Removing excrescent "end"