Fixed idea edit in js