fixed typos in hasmany/manymany causing cascaded deletes to fail