fixed bug when only border but no background is specified