bug fixed (foreign constraint by deletion)