fixed refit

 @sgiavasis please test