fix bug of core