Fixed MotionDetect

Signed-off-by: Laex <laex@bk.ru>