Minor filerefbuf related fixes.
Minor filerefbuf related fixes.