AUTOPILOT problems FS2004

FS2004. For some reason my autopilot dumps the ALT setting as soon as the autpilot intercepts the ILS. The aircraft then dives downwards unless I spot the ALT sign havine gone out. When re-instating the ALT command the autopilot does not recognise it when the glideslope is eventually intercepted from below.I have uninstalled and installed the whole FS2004 programme twice. Does anybody have any idea what has happened?