Fix pin clearing with new input