Bugfixes in PVR cache routines (BAM and MOS)