fix bug with tag causing failure on patch finish