shrc: fix bug