Fix belongsToMany, fixes #147