fix issue #5
Merge pull request #6 from XoopsX/issue_5

fix issue #5