Fix bug that crashes server app when disconnected
Combine smart groups for products if they have same app name and version