NoneType fix for backgrounds.