My understanding is that in this situation ("fixed and comped") that the tip should be calculated on the basis of what the entire check would have been. Thus, if your check would have been $30.00, but you were charged $23.00, tip on the basis of the $30.00. The server does not have to pay out-of-pocket for a kitchen error.