fixes a bug with fonts having just 'foreground' layer