Fixing edit method