fixed PID obtaining
Merge remote-tracking branch 'origin/master'