fixed drawing reversed square in both flash client and html5 client