motion: fix shadow warnings