fix undefined variable in potential_output.c