A slightly less hacky fix for translate3d.