There are two latches (left and right) in the trunk that are responsible for latching the forward part of the trunk lid. When you operate the top the trunk lid opens rearward. Open the lid and look at the catches and the latches responsible for holding the forward section of the trunk lid down.
One of them may be the culprit.