Fix PDF overflow issues in stafftasks part.