Replacing end by done