fix server is None error that was happening when there weren't enough free resources.