some minor fixes (issue #27)