Fixed resource error with cancel buttons (hopefully).