fix bug in getManager