SCRIPT: Fix Error control