Fixed call to wrong sec-function.