Fixing bug with field names ending with "DESC"

Bug reported by Bruce Robertson.