fix a bug in joins