It is a common practice to glue the gasket to the valve cover. There are many sealant choices. There is an application for this. RTVs or high tack gasket sealant work well.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.