Fixed issue with server not setting max num patterns