fix caption drawing