Fixing race condition with changing capacity before the server is ready