fixed issue 386

bug
Merge pull request #451 from safiyu/issuesnew

fixed issue 386