(hls backend with ram) correct bug