fixed a bug in trajApp