fix bugs in join.getAttributes()