fix a known bug for ant build