fix imagine cache invalidation bug