Fix middleware undefined when loading groups form remote middleware
Merge pull request #84 from andig/remote-middleware

Fix middleware undefined when loading groups form remote middleware