remove fd and correct typo