Fix problem with backgrounds and cache