fixed join table problem