Fixed error in warm cache execution when functions were called within a function