manipulation.js fixes