Bug fix ram cache