small fix to return proper value recevied from parent process

Change-Id: Ie2a951a664123a4610cf8e3ec16aff052d8cfb09