Make sure the magnets are polarized correctly if you replace them.