Fix BRAM inference issue.