small fix for pid