fix bug if no chmod method in Cache