Remove extra 'end'
Fix indentation