fixes cache clearing issue in function/delay