Remove bits that shouldn't be there