fixing bug: don't reapply patch