Fixed issue #23

Fixed errors references in issue #23