fix error in helpers.c