Fixing edit type