fixed PDS bug