Remove unintentionally leftover extra 'end'