fix a syntax error

closes: #2121

Reported-by: Tomás Abad <tabadgp@gmail.com>