fixed important bug in croquis.js (extended one)