Fixes for global bg-opacity functionality