fixed TrigonometryCache