Fix missing 'end' typo