pid bug fixed