Fixed bug in join table migration