fixed bug with background=dark