Fix export to bitmap