fixed #50
Merge pull request #51 from JXPheonix/pirate

Fix for issue #50