Update Pbs.pm with patch from issue 485