HASTINGS — A transmission flushing machine that malfunctioned was the cause of last Friday’s fire that destroyed BG&S Transmission at Lexington Avenue and West Second Street in downtown Hastings.