fix antialiasing bug