fix ok/cancel