fixed a bug in FDA script