bug fix in disp and capa