Update deps
Fix undefined var error, fixes #2241