Fixed Removal of FDs during deletion of Primary Key

Signed-off-by: Benjamin <benchisa@gmail.com>