Update schema-manipulator.js

bug fix