fixed edit template