fixed return of string '0' on stdout