fixed method check for active script when running