Fix edit operation