Update dependencies
Always use ctx in middleware