fix typo in reservoir.c