bug fix for shell code block