Fix solve code with empty package specs