Bug introduced in https://github.com/tosiara/motion/commit/41e5da55ec4369dffc1347f0820f8ff58c446f74, and fixed by Mr-Dave in https://github.com/Mr-Dave/motion/commit/976fe425a52c811acf0805e1fc0b966b2c32a412