Fixed bug (issue #45)