Fix shell out bug