what could have been done to change this situation why

With the event that happened in February on 21st. The fraudulent search warrant that authorized a deadly Houston drug raid, which prompted an FBI investigation and a review of more than 1,400 cases involving the narcotics officer who obtained the warrant.

Police found neither of those things, or any other evidence of drug dealing, when they searched the house the next day after they killed Nicholas and Tuttle during a shootout they started by breaking into the house and killing the couple’s dog with a shotgun. it also resulted in the killing of the husband and wife, which they found out later they had the wrong house. As a result not only were to innocent people were killed but two officers were shot.

What could have been done to change this situation? Why?