fixed edit experience javascript error