Issue #142: fixing problem with invalid cached array