fix knock code