Fix bug introduced when turning off refit (37d2ddf)