Fix compl function