Help me seal my hatch!

Ok so this is my first build obviously and I have somehow screwed up the hurricane hinge install that I bought from grant. I read a bunch and thought I had it figured out but once I cut it and installed all my molding I realized something wasn't right! So now it leaks.... There is a gap right at the hinge which I tried to goop some shoe glue into for a quick fix before an overnight trip but I need to fix this right! Obviously the goop didn't work. See pics below: