fix issue #9, the remove expired cache entries bug