fix bug in print.ecrControl