Fixed bug parsing PIDs from file