Correct rendering when ajax editing is enabled