Bug fix in sempre script - replace 'pivot' with 'join'