Remove useless manager and fix compile