Fix compute resource problem in edit page.