save last mods
fix bug with binding contexts