Remove extra 'end' introduced in last commit.