end keyword fix