Fix issue with dropping foreign keys