You can use a shim to ensure the gap is even on the knob side of the door. If the gap is only near the top of the door, only alter the top hinge. If the extra space is at the bottom instead ...