fix alpha bug and clear before filling