fix deprecated spec syntax