fix dirty checks for selected modules

https://www.pivotaltracker.com/story/show/58472046