Fixed small bug from #issuecomment-12137287
Merge pull request #50 from sergeyklay/next

Fixed small bug from #issuecomment-12137287