since an oil change my engine is making knocking while starting up. on 1999 BMW 540i

How can this be corrected? Is there a check valve in the oil filter cannister that is not working? This starts after car has set for awhile, but goes once the engine is running.

Asked by for the 1999 BMW 540i