fixed #225, caused by a bad record cache