Fix little bug in peep thought updates. Fix compile issues