Fixed apimote renaming bug.