Fixing some aspects of ApeScript

Adding an error and reconnected the current being index.