Fixed erroneous internal scope