bug fixing in ChainageAvant