The rubber seal on the filter sits between the outside groove and the inside groove. It should be a snug fit and the rib of the rubber should be away from the filter towards the engine. If it has come apart, use some engine oil to lubricate it and re-insert it into the filter. Don't re-use an oil rubber seal.