Implement some messy code for delete in FF