controller.c: fixed a compile bug