fixed bug 6
Merge pull request #14 from dvperez/master

Fixed issue #6. Good!