Fix shell function.