fix allowTransparency