fix bugs in fcache