Corrected the delete a little, so it will still work, even if not perfectly.