remove invalid join