fix nasty bug when constraining resize interactions + minor optims