fixed greping the correct pid issue