Fix secure code