fixing bugs in the MANET demo

@mkit