fix bug building FSA