Fix bug causing continuous to always be true.
Merge pull request #231 from DouweM/patch-1

Fix bug causing continuous to always be true.