Fix the insertion of the gradient layer causing breakage in title and buttons.