total_results can sometimes be wrong. extra check is needed
Merge pull request #12 from kubakul/patch-1

total_results can sometimes be wrong. extra check is needed