fix fta generation bug