Fixes compiler errors for bot management via pid