Which you did. Actually, I had this problem when I was finishing my screen porch a couple of years ago. I solved it but was wondering if there were a better way.
I adjusted the width of the sloping molding a bit. The horizontal molding had a beveled top. Actually, all the molding pieces had beveled tops so that only the front edge touched the ceiling...much easier to get a fit that way, NP with the non-ninety degree corner at ceiling/wall where it had been taped.