fix sec check