Fixed a bug with join by sign.