Fix antialiased function