fix call to wait4