Fixed #209. Automatic join for m2m relations