Foreign key error fixed.