Corrected loop_stg naming