Fixed script execution