Fix wait_spec formatting