fix some error in console