Ensure fd is saved on locals