Fix tab script access