minor fixes to Complex.js