fixing manager.c