Fixed security scripts