fixing issue_266
Merge pull request #267 from josenavas/issue_266

fixing issue_266