fix bug for bash return value