fixed error of foreignkey to user from shares m2m table