fix all grammar flaws in the following sentence
Company policy stated that thorough examinations had to be done before taking necessary action.
Company policy stated that thorough examinations had to be done before taking any necessary action.