fixed regression introduced in issue #14