Fix gap reset