fixed a compile error and incorrect disconnect cause with unexpanded %s