bugs in join tables