This isn't a bug or a problem, it is done by design. The iPhone is able to sense how many rings the headphone plug has. When you ease out the iPhone 4 ring headphones, you make the iPhone think it has a three ring set plugged in. It then switches the the different 3 ring volume. This feature was introduced in iOS 4. The 3 and 4 ring volumes are independent and are controlled differently.