Fix #277 cache problem