fix lat plugin