fixing bug where protected stati werent properly iterated