wrong variables in pid fixed