changed resources protection logic bug