fix minor typo bug and use remove for M2M delete. Fixes #481