Update manager.cpp

solving #61