fixed the "transparent background becomes black" bug (#464)