fix bug in -s (shell) output