fixed a bug in multijoin