fix the duplicated app issue with spec