A former developer fined more than $45,000 by the City of Gilroy stemming from an out-of-code barbed wire fence he built after suffering a brutal beating at his home in 2008 will only pay a fraction of that because the city misread its own municipal code and incorrectly charged him for a large portion of attorney fees.