Fixed bug in optimization code
Fixed bug in optimization code

ryanramage/svg-editor,ryanramage/svg-editor,trentmillar/ddp-level-editor,ryanramage/svg-editor,trentmillar/ddp-level-editor,trentmillar/ddp-level-editor