I just installed the exact same rails and had the same problem. The bolt heads need to face the inside of the bed. I had to lightly hammer the clips into the rail to seat them properly in the grooves. After that I had no problem getting the rails straight.