The factory service manual says if that happens to just pull up on the cam sprocket while rolling the crankshaft back and forth a few times.

I had the same problem when replacing my head. It works just as the manual said. Just get a socket on the cranshaft pulley bolt and rock it back and fourth while pulling up on the cam sprocket and it will eventually work its way up high enough.