Fix error in console