fix console warnings