Fixed Loop Script Permissions Bug