fix a bug which causes losing cache behavior.