Bug in the motion detector cause false positives, fixes #250