The prime minister has ordered an investigation , but has said that Ms. Freivalds is safe in her job .