Fix unused code