Fixed edit error code