Using an offset wrench may help. I normally prefer to use an open end wrench in this situation. Put a layer of tape around the bolt head and normally you can make it stay put even with the open wrench.