Fixing off by one error in Dream
Merge pull request #111 from yurigorokhov/DR-123

Fixing off by one error in Dream