fix Echo plugin (type mismatch in java code)