Fix sec bug